3.1.2 \(\int (d+e x+f x^2) (a+b x^2+c x^4) \, dx\)

Optimal. Leaf size=69 \[ \frac {1}{3} x^3 (a f+b d)+a d x+\frac {1}{2} a e x^2+\frac {1}{5} x^5 (b f+c d)+\frac {1}{4} b e x^4+\frac {1}{6} c e x^6+\frac {1}{7} c f x^7 \]

________________________________________________________________________________________

Rubi [A]  time = 0.04, antiderivative size = 69, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.043, Rules used = {1657} \begin {gather*} \frac {1}{3} x^3 (a f+b d)+a d x+\frac {1}{2} a e x^2+\frac {1}{5} x^5 (b f+c d)+\frac {1}{4} b e x^4+\frac {1}{6} c e x^6+\frac {1}{7} c f x^7 \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(d + e*x + f*x^2)*(a + b*x^2 + c*x^4),x]

[Out]

a*d*x + (a*e*x^2)/2 + ((b*d + a*f)*x^3)/3 + (b*e*x^4)/4 + ((c*d + b*f)*x^5)/5 + (c*e*x^6)/6 + (c*f*x^7)/7

Rule 1657

Int[(Pq_)*((a_) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Int[ExpandIntegrand[Pq*(a + b*x + c*x^2)^p, x
], x] /; FreeQ[{a, b, c}, x] && PolyQ[Pq, x] && IGtQ[p, -2]

Rubi steps

\begin {align*} \int \left (d+e x+f x^2\right ) \left (a+b x^2+c x^4\right ) \, dx &=\int \left (a d+a e x+(b d+a f) x^2+b e x^3+(c d+b f) x^4+c e x^5+c f x^6\right ) \, dx\\ &=a d x+\frac {1}{2} a e x^2+\frac {1}{3} (b d+a f) x^3+\frac {1}{4} b e x^4+\frac {1}{5} (c d+b f) x^5+\frac {1}{6} c e x^6+\frac {1}{7} c f x^7\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.02, size = 69, normalized size = 1.00 \begin {gather*} \frac {1}{3} x^3 (a f+b d)+a d x+\frac {1}{2} a e x^2+\frac {1}{5} x^5 (b f+c d)+\frac {1}{4} b e x^4+\frac {1}{6} c e x^6+\frac {1}{7} c f x^7 \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(d + e*x + f*x^2)*(a + b*x^2 + c*x^4),x]

[Out]

a*d*x + (a*e*x^2)/2 + ((b*d + a*f)*x^3)/3 + (b*e*x^4)/4 + ((c*d + b*f)*x^5)/5 + (c*e*x^6)/6 + (c*f*x^7)/7

________________________________________________________________________________________

IntegrateAlgebraic [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (d+e x+f x^2\right ) \left (a+b x^2+c x^4\right ) \, dx \end {gather*}

Verification is not applicable to the result.

[In]

IntegrateAlgebraic[(d + e*x + f*x^2)*(a + b*x^2 + c*x^4),x]

[Out]

IntegrateAlgebraic[(d + e*x + f*x^2)*(a + b*x^2 + c*x^4), x]

________________________________________________________________________________________

fricas [A]  time = 0.70, size = 61, normalized size = 0.88 \begin {gather*} \frac {1}{7} x^{7} f c + \frac {1}{6} x^{6} e c + \frac {1}{5} x^{5} d c + \frac {1}{5} x^{5} f b + \frac {1}{4} x^{4} e b + \frac {1}{3} x^{3} d b + \frac {1}{3} x^{3} f a + \frac {1}{2} x^{2} e a + x d a \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x^2+e*x+d)*(c*x^4+b*x^2+a),x, algorithm="fricas")

[Out]

1/7*x^7*f*c + 1/6*x^6*e*c + 1/5*x^5*d*c + 1/5*x^5*f*b + 1/4*x^4*e*b + 1/3*x^3*d*b + 1/3*x^3*f*a + 1/2*x^2*e*a
+ x*d*a

________________________________________________________________________________________

giac [A]  time = 0.24, size = 64, normalized size = 0.93 \begin {gather*} \frac {1}{7} \, c f x^{7} + \frac {1}{6} \, c x^{6} e + \frac {1}{5} \, c d x^{5} + \frac {1}{5} \, b f x^{5} + \frac {1}{4} \, b x^{4} e + \frac {1}{3} \, b d x^{3} + \frac {1}{3} \, a f x^{3} + \frac {1}{2} \, a x^{2} e + a d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x^2+e*x+d)*(c*x^4+b*x^2+a),x, algorithm="giac")

[Out]

1/7*c*f*x^7 + 1/6*c*x^6*e + 1/5*c*d*x^5 + 1/5*b*f*x^5 + 1/4*b*x^4*e + 1/3*b*d*x^3 + 1/3*a*f*x^3 + 1/2*a*x^2*e
+ a*d*x

________________________________________________________________________________________

maple [A]  time = 0.00, size = 58, normalized size = 0.84 \begin {gather*} \frac {c f \,x^{7}}{7}+\frac {c e \,x^{6}}{6}+\frac {b e \,x^{4}}{4}+\frac {\left (b f +c d \right ) x^{5}}{5}+\frac {a e \,x^{2}}{2}+a d x +\frac {\left (a f +b d \right ) x^{3}}{3} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((f*x^2+e*x+d)*(c*x^4+b*x^2+a),x)

[Out]

a*d*x+1/2*a*e*x^2+1/3*(a*f+b*d)*x^3+1/4*b*e*x^4+1/5*(b*f+c*d)*x^5+1/6*c*e*x^6+1/7*c*f*x^7

________________________________________________________________________________________

maxima [A]  time = 1.21, size = 57, normalized size = 0.83 \begin {gather*} \frac {1}{7} \, c f x^{7} + \frac {1}{6} \, c e x^{6} + \frac {1}{4} \, b e x^{4} + \frac {1}{5} \, {\left (c d + b f\right )} x^{5} + \frac {1}{2} \, a e x^{2} + \frac {1}{3} \, {\left (b d + a f\right )} x^{3} + a d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x^2+e*x+d)*(c*x^4+b*x^2+a),x, algorithm="maxima")

[Out]

1/7*c*f*x^7 + 1/6*c*e*x^6 + 1/4*b*e*x^4 + 1/5*(c*d + b*f)*x^5 + 1/2*a*e*x^2 + 1/3*(b*d + a*f)*x^3 + a*d*x

________________________________________________________________________________________

mupad [B]  time = 0.03, size = 59, normalized size = 0.86 \begin {gather*} \frac {c\,f\,x^7}{7}+\frac {c\,e\,x^6}{6}+\left (\frac {c\,d}{5}+\frac {b\,f}{5}\right )\,x^5+\frac {b\,e\,x^4}{4}+\left (\frac {b\,d}{3}+\frac {a\,f}{3}\right )\,x^3+\frac {a\,e\,x^2}{2}+a\,d\,x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((d + e*x + f*x^2)*(a + b*x^2 + c*x^4),x)

[Out]

x^3*((b*d)/3 + (a*f)/3) + x^5*((c*d)/5 + (b*f)/5) + a*d*x + (a*e*x^2)/2 + (b*e*x^4)/4 + (c*e*x^6)/6 + (c*f*x^7
)/7

________________________________________________________________________________________

sympy [A]  time = 0.07, size = 65, normalized size = 0.94 \begin {gather*} a d x + \frac {a e x^{2}}{2} + \frac {b e x^{4}}{4} + \frac {c e x^{6}}{6} + \frac {c f x^{7}}{7} + x^{5} \left (\frac {b f}{5} + \frac {c d}{5}\right ) + x^{3} \left (\frac {a f}{3} + \frac {b d}{3}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x**2+e*x+d)*(c*x**4+b*x**2+a),x)

[Out]

a*d*x + a*e*x**2/2 + b*e*x**4/4 + c*e*x**6/6 + c*f*x**7/7 + x**5*(b*f/5 + c*d/5) + x**3*(a*f/3 + b*d/3)

________________________________________________________________________________________